<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>

<%@page import="locations.model.*"%>

<div>
	<div>
		<ul class="list-actions">
			<li class="list-action-new"><s:url id="url" action="newPacient"></s:url>
				<s:a href="%{url}">
					<s:property value="getText('pacients.nuevo')" />
				</s:a></li>
		</ul>
	</div>
	<table class="admin-table">
		<tr>
			<th><s:property value="getText('pacients.dni')" /></th>
			<th><s:property value="getText('global.apellido')" /></th>
			<th><s:property value="getText('global.nombre')" /></th>
			<th><s:property value="getText('global.acciones')" /></th>
		</tr>
		<s:iterator value="pacients" status="row">
			<s:if test="#row.odd == true">
				<tr class="odd">
			</s:if>
			<s:else>
				<tr class="even">
			</s:else>
			<td><s:property value="documento" /></td>
			<td><s:property value="apellido" /></td>
			<td><s:property value="nombre" /></td>
			<td class="list-actions-td">
				<ul class="object-actions">
					<li class="object-action-edit"><s:url id="url"
							action="editPacient">
							<s:param name="id" value="id"></s:param>
						</s:url> <s:a href="%{url}">
							<s:property value="getText('accion.modificar')" />
						</s:a></li>

					<li class="object-action-delete"><s:url id="url"
							action="deletePacient">
							<s:param name="id" value="id"></s:param>
						</s:url> <s:a href="%{url}" onclick="return confirm('Desea...?')">
							<s:property value="getText('accion.eliminar')" />
						</s:a></li>
				</ul>
				<ul class="object-actions">
					<li class="object-action-nearest-institutions"><s:url id="url"
							action="findInstitutions">
							<s:param name="id" value="id"></s:param>
							<s:param name="delta" value="0.01"></s:param>
						</s:url> <s:a href="%{url}">
							<s:property value="getText('pacients.instituciones')" />
						</s:a></li>

					<li class="object-action-cargarficha"><s:url id="url"
							action="fichaSocial1">
							<s:param name="id" value="id"></s:param>
						</s:url> <s:a href="%{url}">

							<s:property value="getText('pacients.verFichaSocial')" />
						</s:a></li>

					<li class="object-action-cargarpractica"><s:url id="url"
							action="practicas">
							<s:param name="id" value="id"></s:param>
						</s:url> <s:a href="%{url}">
							<s:property value="getText('pacients.ver')" />
						</s:a></li>
				</ul>
			</td>
		</s:iterator>
	</table>
</div>
